<include file="Common/header" />
<title>栏目管理</title>
<style>
.norag { border: none !important; font-weight: normal !important }
</style>
</head>
<body>
<nav class="breadcrumb">
<div class="menu_4">
    <a href="{:U('index')}" class="active">模型管理</a>
    <a href="{:U('add_model')}">创建新模型</a>  </div>
  <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新">
  <i class="Hui-iconfont"></i></a>
  </nav>
 
 <div class="pd-20">
   
 <table  class="table table-border table-bg table-hover" style="border-top:none">
    <thead>
      <tr>
        <th width="50" align="center">ModelID</th>
        <th width="100" align="center">模型名称</th>
        <th width="100" align="center">数据表</th>
        <th align="center">描述</th>
        <th width="100" align="center">状态</th>
        <th width="230" align="center">管理操作</th> 
      </tr>
    </thead>
    <tbody>
    <volist name="lists" id="vo">
    <tr>
        <td align="center" class="text-c">{$vo.modelid}</td>
        <td align="center" >{$vo.name}</td>
        <td align="center" >{$vo.tablename}</td>
        <td align="center">{$vo.description}</td> 
        <td align="center"><if condition="$vo['disabled'] eq 1"><font  class=" label label-danger  radius">禁用</font><else /><font  class=" label label-success radius">启用</font></if> </td>
        <td align="center">
        <a class="btn-link" _href="{:U('add_model',array('mid'=>$vo['modelid']))}" href="javascript:;" onClick="Hui_admin_tab(this);" data-title="修改模型" >修改</a> | 
        <a class="btn-link" _href="{:U('modelfield_edit',array('mid'=>$vo['modelid']))}" href="javascript:;"  onClick="Hui_admin_tab(this);" data-title="字段管理">字段管理</a> | 
        <a class="btn-link getajax_ldh" _href="{:U('disabled',array('mid'=>$vo['modelid'],'dis'=>$vo['disabled']))}" href="javascript:;" ><if condition="$vo['disabled'] eq 1">启用<else />禁用</if> </a> | 
        <a class="btn-link getajax_ldh del"  _href="{:U('model_del',array('mid'=>$vo['modelid']))}" href="javascript:;" msg='确定要删除模型吗?'>删除</a> | 
        <a class="btn-link" href="">导出模型</a> 
       </td>
      </tr>
      
      </volist>
 
      
      
      
        </tbody>
  </table>
  <div class="pages">
  {$Page}
  </div>
</div>

 
 
<include file="Common/foot" />
</body>
</html>